package com.ruoyi.goods.controller;

import com.ruoyi.goods.entity.Goods;
import com.ruoyi.goods.service.GoodsService;
import com.ruoyi.goods.utils.Result;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/goods")
public class GoodsController {

    @Resource
    GoodsService goodsService;

    @RequestMapping("/selectList")
    public Result selectList(){
        return goodsService.selectList();
    }


    @RequestMapping("/updateById")
    public Result updateById(@RequestBody Goods goods){
        return null;
    }

}
